<template>
  <div>
    <div v-for="{ bid, title, company, photo1 } in data" :key="bid">
      {{ bid }}
      <img :src="photo1" alt="" />
      {{ title }}
      {{ company }}
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      data: null,
    };
  },
  methods: {
    getData() {
      axios.get("/api/data").then((res) => {
        this.data = res.data.data;
        console.log(this.data);
      });
    },
  },
  mounted() {
    this.getData();
  },
};
</script>

<style lang="scss" scoped>
</style>